/**
 * 
 */
package dms.service.imp;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import dms.model.role.DormSupervisor;
import dms.model.role.StudentAffairTeacher;
import dms.model.role.SystemAdministrator;
import dms.model.util.PageIterator;
import dms.repository.SystemAdministratorRepository;
import dms.service.SystemAdministratorQuerySerivce;

/**
 * @author 李健
 *
 */
public class SystemAdministratorQueryServiceImpl implements SystemAdministratorQuerySerivce {



	private static final Log log = LogFactory.getLog(SystemAdministratorQueryServiceImpl.class);
	
	private SystemAdministratorRepository systemAdministratorRepository = null;

	/**
	 * @param systemAdministratorRepository
	 */
	public SystemAdministratorQueryServiceImpl(
			SystemAdministratorRepository systemAdministratorRepository) {
		super();
		this.systemAdministratorRepository = systemAdministratorRepository;
	}
	@Override
	public PageIterator<DormSupervisor> findAllDormSupervisor(int start,
			int count) {
		return this.systemAdministratorRepository.findAllDormSupervisor(start, count);
	}

	@Override
	public PageIterator<StudentAffairTeacher> findAllStudentAffairTeahcer(
			int start, int count) {
		return this.systemAdministratorRepository.findAllStudentAffairTeacher(start, count);
	}

	/**
	 * @return the systemAdministratorRepository
	 */
	public SystemAdministratorRepository getSystemAdministratorRepository() {
		return systemAdministratorRepository;
	}

	/**
	 * @param systemAdministratorRepository the systemAdministratorRepository to set
	 */
	public void setSystemAdministratorRepository(
			SystemAdministratorRepository systemAdministratorRepository) {
		this.systemAdministratorRepository = systemAdministratorRepository;
	}
	@Override
	public DormSupervisor findDormSupervisorById(Long id) {
		return this.systemAdministratorRepository.findDormSupervisorById(id);
	}
	@Override
	public StudentAffairTeacher findStudentAffairTeacherById(Long id) {
		return this.systemAdministratorRepository.findStudentAffairTeacherById(id);
	}
	/**
	 * 
	 */
	public SystemAdministratorQueryServiceImpl() {
		super();
	}
	@Override
	public SystemAdministrator findSystemAdministratorById(long id) {
		return this.systemAdministratorRepository.findSystemAdministratorById(id);
	}
	/**
	 * 
	 */
	@Override
	public PageIterator<SystemAdministrator> findAllSystemAdministrator(
			int start, int count) {
		return this.systemAdministratorRepository.findAllSystemAdministrator(start, count);
	}


}
